/**
 * 
 * 深圳市店联电子商务
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 说明：
 * Entity Name 招聘管理
 * @Author：朱攀
 * @Date：2012-07-25
 */
@Entity
@Table(name="tshopjob")
public class TShopJob implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private String JobID;//职位编号CHAR(15)
	private String Name;//职位名称
	private String Age;//年龄
	private String Des;//描述
	private String Phone;//电话
	private byte Sex;//性别
	private Integer Num;//招聘人数
	private byte Salary;//薪资水平   
	private byte Education;//学历
	private byte WorkYears;//工作年限
	private String Contact;//联系人
	private Integer IsPhonePublic; //是否公开
	
	private String Email;//电子邮箱
	private String Creator; //创建者
    private Date HappenTime; //创建时间
    private Integer Valid;  //是否有效  1为有效 2 为失效
    private byte Type;  // 职位类型 1为全职 2 为兼职
    
    //private  Set<TResume> tResume = new HashSet<TResume>(0); //简历
    
    
    @Id
	@Column(name = "JobID", length=15)
	public String getJobID() {
		return JobID;
	}
	public void setJobID(String jobID) {
		JobID = jobID;
	}
	
	
	@Column(name = "Name")
	public String getName() {
		return Name;
	}
	public void setName(String name) {
		Name = name;
	}
	
	@Column(name = "Age")
	public String getAge() {
		return Age;
	}
	public void setAge(String age) {
		Age = age;
	}
	
	@Column(name = "Des")
	public String getDes() {
		return Des;
	}
	public void setDes(String des) {
		Des = des;
	}
	
	@Column(name = "Phone")
	public String getPhone() {
		return Phone;
	}
	public void setPhone(String phone) {
		Phone = phone;
	}
	
	@Column(name = "Sex")
	public byte getSex() {
		return Sex;
	}
	public void setSex(byte sex) {
		Sex = sex;
	}
	
	@Column(name = "Num")
	public Integer getNum() {
		return Num;
	}
	public void setNum(Integer num) {
		Num = num;
	}
	
	@Column(name = "Salary")
	public byte getSalary() {
		return Salary;
	}
	public void setSalary(byte salary) {
		Salary = salary;
	}
	
	@Column(name = "Education")
	public byte getEducation() {
		return Education;
	}
	
	public void setEducation(byte education) {
		Education = education;
	}
	
	@Column(name = "WorkYears")
	public byte getWorkYears() {
		return WorkYears;
	}
	public void setWorkYears(byte workYears) {
		WorkYears = workYears;
	}
	@Column(name = "Contact")
	public String getContact() {
		return Contact;
	}
	public void setContact(String contact) {
		Contact = contact;
	}
	
	@Column(name = "IsPhonePublic")
	public Integer getIsPhonePublic() {
		return IsPhonePublic;
	}
	public void setIsPhonePublic(Integer isPhonePublic) {
		IsPhonePublic = isPhonePublic;
	}
	
	@Column(name = "Email")
	public String getEmail() {
		return Email;
	}
	public void setEmail(String email) {
		Email = email;
	}
	
	@Column(name = "Creator")
	public String getCreator() {
		return Creator;
	}
	public void setCreator(String creator) {
		Creator = creator;
	}
	
	@Column(name = "HappenTime")
	public Date getHappenTime() {
		return HappenTime;
	}
	public void setHappenTime(Date happenTime) {
		HappenTime = happenTime;
	}
	
	@Column(name = "Valid")
	public Integer getValid() {
		return Valid;
	}
	public void setValid(Integer valid) {
		Valid = valid;
	}
	
	@Column(name = "Type")
	public byte getType() {
		return Type;
	}
	public void setType(byte type) {
		Type = type;
	}
	
//	//fetch = FetchType.LAZY,
//	@ManyToMany(cascade = CascadeType.ALL)
//	@JoinTable(name = "TJobDelivery", 
//			joinColumns = { @JoinColumn(name = "JobID") }, 
//			inverseJoinColumns = { @JoinColumn(name = "ResumeID") })
//	public Set<TResume> getTResume() {
//		return tResume;
//	}
//	public void setTResume(Set<TResume> resume) {
//		tResume = resume;
//	}  
	
	
	

	
	
	
	
}
